package com.wt.springboot.service;

import com.wt.springboot.bean.Book;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Service;

/**
 * Created with IDEA
 * Describe:
 * Author:TianJi
 * Date:2018/11/18
 * Time:17:00
 */
@Service
public class BookService {

    //@RabbitListener(queues = "wt.news")
    public void receiveBookInfo(Book book) {
        System.out.println("收到消息:"+book);
    }
}
